import { createRouter, createWebHistory } from 'vue-router'

// import EditArticle from '@/components/EditArticle.vue'
// import FileForm from '@/components/FileForm.vue'
import ArticlePage from '@/components/ArticlePage.vue'
import ArticleList from '@/components/ArticleList.vue'
import UserList from '@/components/UserList.vue'

import LoginPage from '../views/LoginPage.vue'
import RegisterPage from '../views/RegisterPage.vue'
import HomePage from '../views/HomePage.vue'
import UserPage from '../views/UserPage.vue'
import NotLoginPage from '@/views/NotLoginPage.vue'
import ResetPage from '@/views/ResetPage.vue'

import UserArticle from '../views/user/UserArticle.vue'
import UserCollect from '../views/user/UserCollect.vue'
import UserFocus from '../views/user/UserFocus.vue'
import UserForm from '../views/user/UserForm.vue'
import UserFriend from '../views/user/UserFriend.vue'
import UserHistory from '../views/user/UserHistory.vue'
import UserDialogue from '@/views/user/UserDialogue.vue'



const routes = [
  { path: '/test', name: 'Test', component: ArticlePage },
  { path: '/detail', name: 'Detail', component: ArticlePage },
  { path: '/articleList', name: 'ArticleList', component: ArticleList },
  { path: '/userList', name: 'UserList', component: UserList },
  
  { path: '/', name: 'Default', component: HomePage },
  { path: '/notLogin', name: 'NotLoginPage', component: NotLoginPage },
  { path: '/login', name: 'Login', component: LoginPage },
  { path: '/register', name: 'Register', component: RegisterPage },
  { path: '/reset', name: 'Reset', component: ResetPage },
  { path: '/user', name: 'User', component: UserPage },
  { path: '/userForm', name: 'UserForm', component: UserForm },
  { path: '/home', name: 'Home', component: HomePage },

  { path: '/userArticle', name: 'UserArticle', component: UserArticle },
  { path: '/userCollect', name: 'UserCollect', component: UserCollect },
  { path: '/userFocus', name: 'UserFocus', component: UserFocus },
  { path: '/userFriend', name: 'UserFriend', component: UserFriend },
  { path: '/userHistory', name: 'UserHistory', component: UserHistory },
  { path: '/userDialogue', name: 'UserDialogue', component: UserDialogue }
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
